export const getSearchParams = function(search) {
  const _search = search.slice(1);
  return _search.split('&').reduce((a, b) => {
      const bArr = b.split('=');
      const obj = { [bArr[0]]: bArr[1] };
      return {
          ...a,
          ...obj
      }
  }, {})
};
